package com.seecode.Database;

import com.seecode.Logs;
import com.seecode.Utils.Utils;

/**
 * Created by Administrator on 2017/10/18.
 */

public class History extends  Fuxi {

    private String fileName;
    private String filePath;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String className) {
        this.fileName = className;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public void createTable(){


        if( !Utils.getPreBoolValues(tableName)){

            String createSql = "create table if not exists  "+
                    tableName+" ( id integer primary key autoincrement,"
                    +"filename string unique,filepath string);";



            Logs.i("createTable not have it will be create :"+createSql);
            dbHelper.exeSql(createSql);
            Utils.setPreBoolValues(tableName,true);
        }else{
            Logs.i("table already exists");
        }
    }
}
